package com.ssy.lingxi.pay.common;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 账户状态
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/7/21
 */
public enum AccountStatusEnum {

    Thaw(1, "正常"),
    Frozen(2, "已冻结");

    private Integer code;

    AccountStatusEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(),this.code);
    }
}
